﻿//
// *************************************************************************************
// WP-Framework
// 
// Developed by
// Lukas Kretschmar (lkretschmar.dev@bluewin.ch)
//
// Switzerland, Copyright (c) 2013 lkretschmar
// This content is released under the MIT License (http://opensource.org/licenses/MIT).
//     
// *************************************************************************************
//
//


using KretschIT.WP_Fx.EasyMoq.Test.Helpers.Objects;
using System;
using KretschIT.WP_Fx.EasyMoq;

namespace EasyMoq.Extensions
{
    static class TestEventsExtensions
    {
        public static void SimpleDoneEvent(this IEventsOf<ITestEvents> mock, Object sender, EventArgs e)
        {
            var eventCall = mock.GetType().GetMethod("RaiseSimpleDoneEvent");
            eventCall.Invoke(mock, new object[] { sender, e });
        }

        public static void CustomDoneEvent(this IEventsOf<ITestEvents> mock, Object sender, CustomEventArgs e)
        {
            var eventCall = mock.GetType().GetMethod("RaiseCustomDoneEvent");
            eventCall.Invoke(mock, new object[] { sender, e });
        }
    }
}
